package com.itheima.pojo;

import javax.persistence.*;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.util.Date;

/**
 * @Description  
 * @Author  Hunter
 * @Date 2020-08-03 
 */

@Setter
@Getter
@ToString
@Entity
@Table ( name ="t_picture" )
public class Picture  implements Serializable {

	private static final long serialVersionUID =  5638662716624735561L;

	/**
	 * 唯一uid
	 */
   	@Column(name = "uid" )
	@Id
	private String uid;

	/**
	 * 图片uid
	 */
   	@Column(name = "file_uid" )
	private String fileUid;

	/**
	 * 图片名
	 */
   	@Column(name = "pic_name" )
	private String picName;

	/**
	 * 分类uid
	 */
   	@Column(name = "picture_sort_uid" )
	private String pictureSortUid;

	/**
	 * 状态
	 */
   	@Column(name = "status" )
	private Integer status;

	/**
	 * 创建时间
	 */
   	@Column(name = "create_time" )
	private Date createTime;

	/**
	 * 更新时间
	 */
   	@Column(name = "update_time" )
	private Date updateTime;

	/**
	 * 图片路径
	 */
	@Transient  //数据库不存在的字段需要添加此注解
	private String pictureUrl;
}
